﻿Imports Newtonsoft.Json

''' <summary>
''' 模型列表对象
''' </summary>
Public Class Model

    ''' <summary>
    ''' 数据对象类型 list
    ''' </summary>
    ''' <returns></returns>
    <JsonProperty("object")>
    Public Property [Object] As String

    ''' <summary>
    ''' 模型对象
    ''' </summary>
    ''' <returns></returns>
    <JsonProperty("data")>
    Public Property Data As List(Of ModelObject)

    ''' <summary>
    ''' 模型对象
    ''' </summary>
    Public Class ModelObject

        ''' <summary>
        ''' 模型的标识符
        ''' </summary>
        ''' <returns></returns>
        <JsonProperty("id")>
        Public Property Id As String

        ''' <summary>
        ''' 对象的类型，其值为 model。
        ''' </summary>
        ''' <returns></returns>
        <JsonProperty("object")>
        Public Property [Object] As String

        ''' <summary>
        ''' 拥有该模型的组织。
        ''' </summary>
        ''' <returns></returns>
        <JsonProperty("owned_by")>
        Public Property OwnedBy As String

    End Class

End Class
